import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Button',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyStatelessWidget(),
    );
  }
}

class MyStatelessWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    //定义文本样式

    return Scaffold(
      appBar: AppBar(
        title: Text("Button"),
      ),
      body: Container(
        width: 400,
        height: 400,
        color: Colors.red,
        child:
        /*Padding(padding: EdgeInsets.all(30),
          child: Container(
            color: Colors.blue,
          ),*/
        /*Padding(padding: EdgeInsets.fromLTRB(30,30,10,10),
          child: Container(
            color: Colors.blue,
          ),
        ),
        */
        Padding(padding: EdgeInsets.only(top: 100),
          child: Container(
            color: Colors.blue,
          ),
        ),

      )
    );
  }

}
